//Created by Andre
#include "Recipe.h"
using namespace std;
istream& operator>>(istream &stream, Recipe &rec)//Overide >>
	{
		int rec_id;
		string chef_name;
		string instr;
		stream>>rec_id;
		stream>>chef_name;
		string buff;
		stream>>buff;
		while(buff!="#")
		{
			instr+=buff+" ";
			stream>>buff;
		}
		
		rec= Recipe(rec_id,chef_name,Instructions(instr));
		return stream;
	}
	
ostream& operator<<(ostream &stream, Recipe &rec)//Overide <<
{
	stream<<rec.get_recipe_id()<<"\t"<<rec.get_chef_name()<<"\n"<<rec.get_instructions().getInstructions()<<endl;
	return stream;
}
